import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.ZoneId;

import static java.time.Instant.now;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/27 0:06
 */
@Slf4j
public class HelloJob implements Job {
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("hello job execute at" + now().atZone(ZoneId.systemDefault()).toString());
    }
}
